网站首页 -   -  建站入门 -  建站步骤 -  视频教程 -   -   -  常用软件 -  优化网页 -  网络知识 -   -   关于模板 -   关于域名 -  FTP管理 -  ICP备案 -  邮箱管理 -  网络推广 -  销售心得 -  成功案例 -  dreamweaver知识 -  photoshop知识 -  域名绑定 -  深圳网监局备案 -
让网页显示FTP登录口

发布时间 2007-07-04

实现这个效果的前提是客户拥有一个独立的FTP空间,而且是用来做网络U盘及资料传输的。
方法:将以下代码添加到网站后台网页编辑器的代码区。
如果要更改表格的背景颜色,请在以下代码中查找如下颜色代码,改为自己需要的既可。
#ddf1ff
#0099FF

 

以下是代码片段:

<script janguage="javascript">
<!--
function goFtpSite() {
document.location.href = "ftp://" + document.ftp.login.value + ":" + document.ftp.password.value + "@" + document.ftp.url.value;
}

//-->
</script>
      <form name="ftp">
        <table border="0" cellpadding="1" cellspacing="1"  align="center" width="304">
          <tr>
            <td width="296">
              <table border="0" cellspacing=0 cellpadding=5 align="center" width="292">
                <tr bgcolor="#b5e1ff">
                  <td width="75" align="right"> <font face="arial,helvetica" size="-1" color="#008080">
                    Ftp:// </font> </td>
                  <td width="193"> <font face="arial,helvetica" size="-1">
                    <input type="text" size=30 name="url" style="border: 1 solid #0099FF">
                    </font> </td>
                </tr>
                <tr bgcolor="#ddf1ff">
                  <td align="right" width="75"> <font face="arial,helvetica" size="-1" color="#008080">用户名:
                    </font> </td>
                  <td width="193"> <font face="arial,helvetica" size="-1">
                    <input type="text" size="15" name="login" maxlength="20" style="border: 1 solid #0099FF">
                    </font> </td>
                </tr>
                <tr bgcolor="#b5e1ff">
                  <td align="right" width="75"> <font face="arial,helvetica" size="-1" color="#008080">
                    密码: </font> </td>
                  <td width="193"> <font face="arial,helvetica" size="-1">
                    <input type="password" size="15" name="password" maxlength="20" style="border: 1 solid #0099FF">
                    </font></td>
                </tr>
                <tr bgcolor="#ddf1ff">
                  <td colspan="2" align="center" width="280"> <font face="arial,helvetica" size="-2">
                    <input type=button onclick="goFtpSite();" value="登录" style="background-color: #0099FF; color: #FFFFFF; border: 1 solid #0099FF">
                      
                    <input type=reset value="重写" style="color: #FFFFFF; background-color: #0099FF; border: 1 solid #0099FF">
                    </font> </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </form>

 实现效果如下:
Ftp://
用户名:
密码:

 

相关内容
查无记录
 
公司地址:深圳市福田区福民路12号知本大厦706   邮编:518000        
客服热线:0755-61192828 传真:0755-82915763 
客服的服务质量投诉::service@51rich.net(如果您觉得哪位客服的服务不好或者服务得超级好,都可以发EM通知我们,并写上原因,谢谢您的监督)
网站管理